<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GTlsServerConnection</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIO 参考手册">
<link rel="up" href="tls.html" title="TLS (SSL) support">
<link rel="prev" href="gio-GTlsClientConnection.html" title="GTlsClientConnection">
<link rel="next" href="gio-GTlsBackend.html" title="GTlsBackend">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gio-GTlsClientConnection.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="tls.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIO 参考手册</th>
<td><a accesskey="n" href="gio-GTlsBackend.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gio-GTlsServerConnection.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gio-GTlsServerConnection.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gio-GTlsServerConnection"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gio-GTlsServerConnection.top_of_page"></a>GTlsServerConnection</span></h2>
<p>GTlsServerConnection — TLS server-side connection</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gio-GTlsServerConnection.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gio/gio.h&gt;

                    <a class="link" href="gio-GTlsServerConnection.html#GTlsServerConnection" title="GTlsServerConnection">GTlsServerConnection</a>;
struct              <a class="link" href="gio-GTlsServerConnection.html#GTlsServerConnectionInterface" title="struct GTlsServerConnectionInterface">GTlsServerConnectionInterface</a>;
<a class="link" href="gio-GIOStream.html#GIOStream" title="GIOStream"><span class="returnvalue">GIOStream</span></a> *            <a class="link" href="gio-GTlsServerConnection.html#g-tls-server-connection-new" title="g_tls_server_connection_new ()">g_tls_server_connection_new</a>      (<em class="parameter"><code><a class="link" href="gio-GIOStream.html#GIOStream" title="GIOStream"><span class="type">GIOStream</span></a> *base_io_stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GTlsCertificate.html#GTlsCertificate" title="GTlsCertificate"><span class="type">GTlsCertificate</span></a> *certificate</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gio-GTlsServerConnection.description"></a><h2>Description</h2>
<p>
<a class="link" href="gio-GTlsServerConnection.html#GTlsServerConnection" title="GTlsServerConnection"><span class="type">GTlsServerConnection</span></a> is the server-side subclass of <a class="link" href="gio-GTlsConnection.html#GTlsConnection" title="GTlsConnection"><span class="type">GTlsConnection</span></a>,
representing a server-side TLS connection.
</p>
</div>
<div class="refsect1">
<a name="gio-GTlsServerConnection.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GTlsServerConnection"></a><h3>GTlsServerConnection</h3>
<pre class="programlisting">typedef struct _GTlsServerConnection GTlsServerConnection;</pre>
<p>
TLS server-side connection. This is the server-side implementation
of a <a class="link" href="gio-GTlsConnection.html#GTlsConnection" title="GTlsConnection"><span class="type">GTlsConnection</span></a>.
</p>
<p class="since">Since 2.28</p>
</div>
<hr>
<div class="refsect2">
<a name="GTlsServerConnectionInterface"></a><h3>struct GTlsServerConnectionInterface</h3>
<pre class="programlisting">struct GTlsServerConnectionInterface {
  GTypeInterface g_iface;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="g-tls-server-connection-new"></a><h3>g_tls_server_connection_new ()</h3>
<pre class="programlisting"><a class="link" href="gio-GIOStream.html#GIOStream" title="GIOStream"><span class="returnvalue">GIOStream</span></a> *            g_tls_server_connection_new      (<em class="parameter"><code><a class="link" href="gio-GIOStream.html#GIOStream" title="GIOStream"><span class="type">GIOStream</span></a> *base_io_stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GTlsCertificate.html#GTlsCertificate" title="GTlsCertificate"><span class="type">GTlsCertificate</span></a> *certificate</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GTlsServerConnection.html#GTlsServerConnection" title="GTlsServerConnection"><span class="type">GTlsServerConnection</span></a> wrapping <em class="parameter"><code>base_io_stream</code></em> (which
must have pollable input and output streams).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_io_stream</code></em> :</span></p></td>
<td>the <a class="link" href="gio-GIOStream.html#GIOStream" title="GIOStream"><span class="type">GIOStream</span></a> to wrap</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>certificate</code></em> :</span></p></td>
<td>the default server certificate, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="gio-GTlsServerConnection.html#GTlsServerConnection" title="GTlsServerConnection"><span class="type">GTlsServerConnection</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.28</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>